package com.we823.project.repository.service.we;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.we823.project.model.we.UserRoleModel;
import com.we823.project.repository.dao.we.UserRoleRepository;
import com.we823.project.repository.service.AbstractBaseService;

@Service("userRoleService")
public class UserRoleService extends AbstractBaseService<UserRoleModel> {

	private UserRoleRepository userRoleRepository;
	
	@Autowired
	public UserRoleService(UserRoleRepository userRoleRepository) {
		super(userRoleRepository);
	}
	
	public List<UserRoleModel> findByUserId(int userId){
		return userRoleRepository.findByUserId(userId);
	}

}
